<?php

class letsMemberComponents extends sfComponents
{
  public function executeSearchBar()
  {
    $this->form = new LetsSearchBarForm();
  }
  public function executeMemberNavBar()
  {
    $this->current_user_id = $this->getUser()->getUserId();
    $this->level_right = LetsMemberTable::getLevelRightForMemberId($this->current_user_id);
    $this->user = $this->getUser();
  }
  public function executeMoneySentence()
  {
    
    $this->notMyUser = true;
    if(!isset($this->user_id))
    {
      $this->user_id = $this->getUser()->getUserId();
      $this->notMyUser = false;
    }
    else
    {
      $this->userName = LetsMemberTable::getNameById($this->user_id,false);
    }
    
    
  }
}